<template>
  <div class="color">
    <Layout :active="2" :navBarShow="false">
      <!-- 个人信息 -->
      <div class="personInfo">
        <div class="heardImg">
          <img :src="require('@/assets/noface.jpg@240w_240h_1c_1s.webp')" alt="">
        </div>
        <div class="userName">
          ノじん
        </div>
      </div>
      <!-- 全部订单 -->
      <div class="bill-container">
        <div class="bill-title" @click="goOrderForGoods()">
          <div class="lt">
            <van-icon name="orders-o" color="#c7c7cc" size="0.6rem" />
            <span>全部订单</span>
          </div>
          <div class="rt">
            <van-icon name="arrow" color="#c7c7cc" />
          </div>
        </div>
        <div class="bill-content">
          <van-grid :border="false" class="bill-nav">
            <van-grid-item icon="balance-pay" text="待付款" badge="1" />
            <van-grid-item icon="logistics" text="待发货" badge="2" />
            <van-grid-item icon="comment-o" text="待评价" badge="3" />
          </van-grid>
        </div>
      </div>
      <!-- 功能模块 -->
      <div class="myFunction-container">
        <div class="bill-title">
          <div class="lt">
            <van-icon name="chat-o" color="#c7c7cc" size="0.6rem" />
            <span>我的消息</span>
          </div>
          <div class="rt">
            <van-icon name="arrow" color="#c7c7cc" />
          </div>
        </div>
        <div class="bill-title">
          <div class="lt">
            <van-icon name="star-o" color="#c7c7cc" size="0.6rem" />
            <span>我的收藏</span>
          </div>
          <div class="rt">
            <van-icon name="arrow" color="#c7c7cc" />
          </div>
        </div>
        <div class="bill-title">
          <div class="lt">
            <van-icon name="location-o" color="#c7c7cc" size="0.6rem" />
            <span>我的地址</span>
          </div>
          <div class="rt">
            <van-icon name="arrow" color="#c7c7cc" />
          </div>
        </div>
        <div class="bill-title" style="border:none">
          <div class="lt">
            <van-icon name="coupon-o" color="#c7c7cc" size="0.6rem" />
            <span>我的优惠</span>
          </div>
          <div class="rt">
            <van-icon name="arrow" color="#c7c7cc" />
          </div>
        </div>
      </div>
      <!-- QR code -->
      <div class="QRcode">
        <div class="lt">
          <van-icon name="scan" color="#c7c7cc" size="0.6rem" />
          <span>门店扫码</span>
        </div>
        <div class="rt">
          <van-icon name="arrow" color="#c7c7cc" />
        </div>
      </div>
    </Layout>
  </div>
</template>

<script>
export default {
  // 定义属性
  data() {
    return {}
  },
  // 方法集合
  methods: {
    goOrderForGoods() {
      this.$router.push('/orderForGoods')
    }
  }
}
</script>

<style lang='less' scoped>
.color {
  background: #efeff4;
}
.personInfo {
  height: 450px;
  background-color: #6693a6;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  .heardImg {
    width: 172px;
    height: 172px;
    overflow: hidden;
    border-radius: 50%;
    margin-bottom: 30px;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .userName {
    color: #fff;
    font-size: 36px;
  }
}
.bill-container {
  background: #fff;
  margin-bottom: 20px;
  .bill-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    font-size: 30px;
    height: 88px;
    border-bottom: 1px solid #e7e7e7;
    .lt {
      display: flex;
      align-items: center;
      span {
        margin-left: 25px;
      }
    }
  }
  .bill-content {
    .bill-nav {
      height: 148px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 86px;
      padding-top: 10px;
      border-bottom: 1px solid #e7e7e7;
    }
  }
}
.myFunction-container {
  background: #fff;
  padding-left: 30px;
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 20px;
  .bill-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 30px;
    font-size: 30px;
    height: 86px;
    border-bottom: 1px solid #e7e7e7;
    .lt {
      display: flex;
      align-items: center;
      span {
        margin-left: 25px;
      }
    }
  }
}
.QRcode {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  font-size: 30px;
  height: 86px;
  border-bottom: 1px solid #e7e7e7;
  border-top: 1px solid #e7e7e7;
  .lt {
    display: flex;
    align-items: center;
    span {
      margin-left: 25px;
    }
  }
}
</style>